package bb.lanxing.nav;

import bb.lanxing.model.json.Route;
import bb.lanxing.model.json.RouteStep;

/**
 * 导航状态监听
 */
public interface NavStatusListener {
    void onInitialized(RouteStep curStep, RouteStep nextStep);

    void onSetup(Route route);

    void onStepChanged(RouteStep lastStep, RouteStep newStep, boolean isForecast);

    void onUpdateInfo(RouteStep curStep, double distance);

    void onYaw(RouteStep step);

    void onYawBack(RouteStep step);

    void onArrived();

    void onNavFailed(int code);

    void onKeepGoing(RouteStep curStep, double distance);
}